<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>CPI大数据采集及编辑</title>
<link rel="stylesheet" type="text/css"
	href="css/style.css">
<script
	src="My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript"> 
	function check(){
		if($.trim($("#cpidate").val())==""){
			alert("数据来源时间不能为空，请输入数据来源时间！");
			$("#cpidate").focus();
			return false;
		}
		if($.trim($("#cpidata").val())==""){
			alert("亲，请输入价格呢");
			$("#cpidata").focus();
			return false;
		}
	}

</script>
</head>

<body>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="153" height="48"><img
				src="WebContent/images/projectmanager.gif"
				width="153" height="48"></td>
			<td
				background="WebContent/images/maintitle-bg.gif">&nbsp;</td>
			<td width="80"><img
				src="WebContent/images/maintitle-right.gif"
				width="80" height="48"></td>
		</tr>
	</table>
	<form id="form1" name="form1"
		action="Doaddgoods"
		method="post">
		<input type="hidden" id="id" name="id" value="" />
		<input type="hidden" id="pageIndex" name="id" value="" />
		<table width="100%" border="0" cellspacing="5" cellpadding="0"
			class="message">
			<tbody>
				<tr>
					<td height="35" align="right">CPI数据类别：</td>
					<td><select id="datatypeparent" name="dataType"
						class="input-text-sytle98" onChange="fullchild()">
							
								<option value="水果类"
									>水果类</option>
							
								<option value="蔬菜类"
									>蔬菜类</option>
							
								<option value="粮食类"
									>粮食类</option>
							
								<option value="药品类"
									>药品类</option>
									
								<option value="军工类"
									>军工类</option>
								<option value="文娱类"
									>文娱类</option>
							
					</select></td>
				</tr>
				
				<tr>
					<td width="180" height="35" align="right">数据来源区域：</td>
					<td><select id="mydataarea" name="area"
						class="input-text-sytle98">
							
								<option value="甘肃省"
									>甘肃省</option>
							
								<option value="陕西省"
									>陕西省</option>
									
								<option value="河南省"
									>河南省</option>
									
								<option value="黑龙江省"
									>黑龙江省</option>
									
								<option value="台湾省"
									>台湾省</option>
									
								<option value="日本省"
									>日本省</option>
									
								<option value="江西省"
									>江西省</option>
									
								<option value="美利坚省"
									>美利坚省</option>
							
					</select></td>
				</tr>
				<tr>
					<td height="35" align="right">数据来源时间：</td>
					<td><input id="cpidate" name="date" type="text"
						class="input-text-sytle98"
						value=''
						onclick="new WdatePicker({ dateFmt: 'yyyy-MM', isShowToday: false, isShowClear: false })"
						required placeholder="请输入数据来源时间"></td>
				</tr>
				<tr>
					<td height="35" align="right">商品名称：</td>
					<td><input type="text" min="0" step="0.1" name="goodsName" id="cpidata"
						value=""
						class="input-text-sytle98" required placeholder="请输入商品名称"></td>
				</tr>
				<tr>
					<td height="35" align="right">价格：</td>
					<td><input type="number" min="0" step="0.1" name="price" id="cpidata1"
						value=""
						class="input-text-sytle98" required placeholder="请输入价格"></td>
				</tr>
				<tr>
					<td height="35" align="right">数据单位：</td>
					<td><select id="databit" name="unit"
						class="input-text-sytle98">
							<option value="500克">500克</option>
							<option value="个">个</option>
							<option value="盒">盒</option>
							<option value="部">部</option>
							<option value="支">支</option>
							<option value="辆">辆</option>
							<option value="架">架</option>
					</select></td>
				</tr>
 
				<tr>
					<td height="35" align="right" valign="top">备注：</td>
					<td><textarea name="remark" id="demo"
							class="input-text-sytle2010">备注信息</textarea></td>
				</tr>
				<tr>
					<td height="35" align="right">&nbsp;</td>
					<td><input name="button" type="submit" class="submitbutton"
						value="保    存" onclick="return check()" /> <input name="button"
						type="button" class="submitbutton" onclick="history.go(-1);"
						value="查看数据" /></td>
				</tr>
				<tr><td></td><td><div style="color:red;"></div></td></tr>
			</tbody>
		</table>
	</form>
</body>
</html>
